import BTConditional from "../../Base/BTConditional"
import { NodeStatus } from "../../Enum/NodeStatus"
import BoardMgr from "../../Managers/BoardMgr"

export default class ConditionMP extends BTConditional {
  onUpdate() {
    if (BoardMgr.Instance.mp >= 100) {
      return NodeStatus.Success
    }
    return NodeStatus.Failure
  }
}